package com.bayair.doctor.ui.main.right;

import com.bayair.doctor.data.bean.SetResp;
import com.bayair.doctor.mvp.IView;
import com.bayair.doctor.net.BaseEntity;

import io.reactivex.Observable;

/**
 * Author: tuyrt7
 * Date: 2019/9/29 9:55
 * Description:
 */
public interface RightContract {

    interface Model {
        Observable<BaseEntity<SetResp>> setReceive(boolean isReceive);

        Observable<BaseEntity<SetResp>> setInquiry(boolean isInquiry);

        Observable<BaseEntity<SetResp>> logout();
    }

    interface View extends IView {
        /**
          上传服务器失败 - 是否接受过期消息
         */
        void failSaveIsReceiveMsg();
        /**
         上传服务器失败 - 是否接受问诊
         */
        void failSaveIsInquiry();

        /**
         上传请求结束 - 是否接受过期消息
         */
        void completeReceive();
        /**
         上传请求结束- 是否接受问诊
         */
        void completeInquiry();

        /**
          退出登录服务器
         */
        void logoutSuccess();

        void logoutFailed();
    }

    interface Presenter {
        void setReceive(boolean isReceive);

        void setInquiry(boolean isInquiry);

        void logout();
    }

}
